home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 66
/
Vol 66.iso
/
games
/
bob_espo.swf
/
scripts
/
__Packages
/
Delegate.as
< prev
next >
Wrap
Text File
|
2013-04-24
|
682b
|
31 lines
class Delegate extends Object
{
function Delegate()
{
super();
}
function DelegateArgs(f)
{
this.func = f;
}
static function create(obj, func)
{
var _loc3_ = function()
{
var _loc2_ = arguments.callee.target;
func = arguments.callee.func;
var _loc3_ = arguments.callee.arg;
_loc3_ = _loc3_.concat(arguments);
return func.apply(_loc2_,_loc3_);
};
_loc3_.target = obj;
_loc3_.func = func;
_loc3_.arg = arguments.slice(2);
return _loc3_;
}
function createDelegate(obj)
{
return Delegate.create(obj,this.func);
}
}